package scrypto

import (
	"crypto/md5"
	"github.com/spf13/cast"
	"io"
)

func Md5Str(str string) string {
	s := md5.New()
	io.WriteString(s, str)
	return cast.ToString(md5.Sum(nil))
}
